package com.etc.service;

import java.util.List;

import com.etc.entity.Travels;
import com.etc.util.PageData;

public interface TravelsService {
	boolean deleteByPrimaryKey(Integer traId);

	boolean insert(Travels record);

	boolean insertSelective(Travels record);

	Travels selectByPrimaryKey(Integer traId);

	boolean updateByPrimaryKeySelective(Travels record);

	boolean updateByPrimaryKey(Travels record);

	// 查询所有的游记
	List<Travels> selectAll();

	// 根据用户ID查询所有的游记
	List<Travels> selectByUserid(int userId);

	PageData<Travels> selecTravelsByPage(Integer page,Integer limit,String content);

}
